package com.tdkj.model.risevalue;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

@Entity
@Table(name = "risevalue_service_custom")
public class BeanServiceCustom extends BaseEntity implements java.io.Serializable {

	private Integer timeLimit;
	private String timeLimitUnit;
	private Integer price;
	private String priceUnit;
	private BeanService service;
	private Timestamp createTime;
	
	public String getTimeLimitUnit() {
		return timeLimitUnit;
	}
	public void setTimeLimitUnit(String timeLimitUnit) {
		this.timeLimitUnit = timeLimitUnit;
	}
	
	@ManyToOne(cascade={CascadeType.REFRESH}, fetch=FetchType.LAZY)
	@JoinColumn(name="service_id")
	public BeanService getService() {
		return service;
	}
	
	public void setService(BeanService service) {
		this.service = service;
	}

	public String getPriceUnit() {
		return priceUnit;
	}

	public void setPriceUnit(String priceUnit) {
		this.priceUnit = priceUnit;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Integer getTimeLimit() {
		return timeLimit;
	}

	public void setTimeLimit(Integer timeLimit) {
		this.timeLimit = timeLimit;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

}